<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Http\Resources\CustomerServiceResource;
use App\Models\CustomerService;
use Illuminate\Http\Request;

class CustomerServiceController extends Controller
{
    public function index(Request $request)
    {
        return successReturn(CustomerServiceResource::collection(CustomerService::query()->show()->orderBy('sort')->orderByDesc('id')->get()));
    }
}
